// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import './assets/css/reset.css'
import ElementUI from 'element-ui';

// 是否夜间模式


// 引入公共组件
import commonComponents from './components/common/index'
for (const key in commonComponents) {
  Vue.component(key, commonComponents[key])
}

Vue.config.productionTip = false
// ElementUI
Vue.use(ElementUI);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
